home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / graphics / graphics_intern.h < prev    next >
C/C++ Source or Header  |  1996-10-31  |  3KB  |  76 lines

  1. #ifndef GRAPHICS_INTERN_H
  2. #define GRAPHICS_INTERN_H
  3. /*
  4.     (C) 1995-96 AROS - The Amiga Replacement OS
  5.     $Id: graphics_intern.h,v 1.6 1996/10/31 13:54:47 aros Exp $
  6.  
  7.     Desc: Internal header file for graphics.library
  8.     Lang: english
  9. */
  10. #ifndef AROS_LIBCALL_H
  11. #   include <aros/libcall.h>
  12. #endif
  13. #ifndef EXEC_EXECBASE_H
  14. #   include <exec/execbase.h>
  15. #endif
  16. #ifndef GRAPHICS_GFXBASE_H
  17. #   include <graphics/gfxbase.h>
  18. #endif
  19. #ifndef GRAPHICS_TEXT_H
  20. #   include <graphics/text.h>
  21. #endif
  22. #ifndef GRAPHICS_RASTPORT_H
  23. #   include <graphics/rastport.h>
  24. #endif
  25.  
  26. extern struct GfxBase * GfxBase;
  27.  
  28. #ifdef SysBase
  29. #undef SysBase
  30. #endif
  31. #define SysBase ((struct ExecBase *)(GfxBase->ExecBase))
  32.  
  33. /* Needed for close() */
  34. #define expunge() \
  35.     AROS_LC0(BPTR, expunge, struct GfxBase *, GfxBase, 3, Gfx)
  36.  
  37. /* Driver prototypes */
  38. extern int driver_CloneRastPort (struct RastPort *, struct RastPort *,
  39.             struct GfxBase *);
  40. extern void driver_CloseFont (struct TextFont *, struct GfxBase *);
  41. extern void driver_DeinitRastPort (struct RastPort *, struct GfxBase *);
  42. extern void driver_Draw (struct RastPort *, LONG, LONG, struct GfxBase *);
  43. extern void driver_DrawEllipse (struct RastPort *, LONG x, LONG y,
  44.             LONG rx, LONG ry, struct GfxBase *);
  45. extern void driver_EraseRect (struct RastPort *, LONG, LONG, LONG, LONG,
  46.                 struct GfxBase *);
  47. extern int  driver_InitRastPort (struct RastPort *, struct GfxBase *);
  48. extern void driver_Move (struct RastPort *, LONG, LONG, struct GfxBase *);
  49. extern struct TextFont * driver_OpenFont (struct TextAttr *,
  50.                 struct GfxBase *);
  51. extern void driver_PolyDraw (struct RastPort *, LONG, WORD *,
  52.                 struct GfxBase *);
  53. extern ULONG driver_ReadPixel (struct RastPort *, LONG, LONG,
  54.                 struct GfxBase *);
  55. extern void driver_RectFill (struct RastPort *, LONG, LONG, LONG, LONG,
  56.                 struct GfxBase *);
  57. extern void driver_ScrollRaster (struct RastPort *,
  58.                 LONG, LONG, LONG, LONG, LONG, LONG,
  59.                 struct GfxBase *);
  60. extern void driver_SetABPenDrMd (struct RastPort *, ULONG, ULONG, ULONG,
  61.                 struct GfxBase * GfxBase);
  62. extern void driver_SetAPen (struct RastPort *, ULONG, struct GfxBase *);
  63. extern void driver_SetBPen (struct RastPort *, ULONG, struct GfxBase *);
  64. extern void driver_SetDrMd (struct RastPort *, ULONG, struct GfxBase *);
  65. extern void driver_SetFont (struct RastPort *, struct TextFont *,
  66.                 struct GfxBase *);
  67. extern void driver_SetOutlinePen (struct RastPort *, ULONG, struct GfxBase *);
  68. extern void driver_SetRast (struct RastPort *, ULONG, struct GfxBase *);
  69. extern void driver_Text (struct RastPort *, STRPTR, LONG, struct GfxBase *);
  70. extern WORD driver_TextLength (struct RastPort *, STRPTR, ULONG,
  71.                 struct GfxBase *);
  72. extern LONG driver_WritePixel (struct RastPort *, LONG, LONG,
  73.                 struct GfxBase *);
  74.  
  75. #endif /* GRAPHICS_INTERN_H */
  76.